
#ifndef __SYSTASK_H
#define	__SYSTASK_H

#include <stdint.h>
#include "pulse.h"
#include "rtctime.h"

#ifdef	__cplusplus
extern "C" {
#endif
	
#ifdef   _SYSTASK_MODULE_
#define  MY_EXT
#else
#define  MY_EXT  extern
#endif  


typedef struct
{
	uint8_t str_module;
    volatile uint32_t ticks;
    timer_pulse_type pulse;
    TIME_Type sw_rtc;
    sig_time_type sig_rtc;
    uint8_t *buff;
	uint8_t sw_dma_req;
	char task_info;
	
	struct
	{
		uint16_t ccm_used;
		uint16_t stack_used;
	} info;
	
} sys_run_st_type;

MY_EXT sys_run_st_type sys_st;

#undef MY_EXT

#ifdef	__cplusplus
}
#endif

#endif	/* __SYSTASK_H */
